package state;

/**
 * @author wcj
 * @Date 2021/6/30 22:10
 * @Version 1.0
 */
public class Work {

    private State current;

    private Double hour;

    private boolean workFinished;

    public Work() {
        this.current = new ForenoonState();
    }

    public State getCurrent() {
        return current;
    }

    public void setCurrent(State current) {
        this.current = current;
    }

    public Double getHour() {
        return hour;
    }

    public void setHour(Double hour) {
        this.hour = hour;
    }

    public boolean getWorkFinished() {
        return workFinished;
    }

    public void setWorkFinished(boolean workFinished) {
        this.workFinished = workFinished;
    }

    public void writeProgram() {
        current.writeProgram(this);
    }
}